package com.smedi.ismedi.inmail.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smedi.ismedi.inmail.api.dto.request.QueryListMessageRecordRequest;
import com.smedi.ismedi.inmail.api.dto.request.QueryPageMessageRecordRequest;
import com.smedi.ismedi.inmail.core.port.adapter.persistence.model.MessageRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author u
 */
@Mapper
public interface MessageRecordMapper extends BaseMapper<MessageRecordEntity> {
    List<MessageRecordEntity> doList(@Param("request") QueryListMessageRecordRequest queryListMessageRecordRequest);

    IPage<MessageRecordEntity> doListPage(IPage iPage, @Param("request") QueryPageMessageRecordRequest queryPageMessageRecordRequest);
}